<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>main page</title>
<link rel="stylesheet" type="text/css" href="250524.css" />
</head>
<?php
$link = @mysql_pconnect("localhost","lele","happy"); 
mysql_query("SET NAMES 'utf8'");
mysql_select_db("LELE_restaurant");
?>
<body>
	<div id="wrapper">
         <div id="header">
		       <p>小樂飯麵</p>		 
		 </div>
         <div id="navigation">
		 
		 </div>
		 <div id="content">
		      <?php
		      print "<p>Employee Information"; 
				print "</p><table border=1><tr><td>Name</td><td>Price</td></tr>";

				$result = mysql_query("select * from menu");

				while ($row=mysql_fetch_row($result)) 
				{ 
				  print "<tr><td>" . $row[0] . "</td><td>" . $row[1] . "</td></tr>"; 
				}
				print "</table>";
				mysql_free_result($result);
				mysql_close($link);
		      ?>
			  <p>This is the main content</p><br /><br /> 

	          <button id="mainbutton" type="button" onclick="self.location.href='ordering.php'">定餐</button>
	          <button id="mainbutton" type="button" onclick="self.location.href='checkbill.php'">餐點結帳</button>
	          <button id="mainbutton" type="button" onclick="self.location.href='queryorder.php'">訂單查詢</button>
	          <button id="mainbutton" type="button" onclick="self.location.href='sum.php'">日月結算</button>
	          <button id="mainbutton" type="button" onclick="self.location.href='editmenu.php'">編輯菜單</button>
		 
		 </div>
		 <div id="footer">
		       
			   <p>This is the Footer</p>		
			    
	     </div>   </div>
   
</body>
</html>
